package com.zyh.homeworkzhuantike;

public class Test16 {
    public static void main(String[] args) {
        /*
        6.	运用continue跳过当前的循环,计算1,2,3,4,5这一组数据,但要求只计算1,2,3,5的和
         */
        int sum = 0;
        for (int i = 1; i < 6; i++) {
            if (i == 4) {
                continue;
            } else {
                sum += i;
            }
        }
        System.out.println("1,2,3,5的和 = " + sum);
    }
}
